<?php
	global $_W,$_GPC;
	if($_W['role']){
		$page = $_GPC['page'];
		$pindex = max(1, intval($page));	
		$psize = 10;
		$sql = "SELECT * FROM".tablename('mii_ang_tech')." WHERE uniacid=:uniacid  ORDER BY id DESC LIMIT ".($pindex-1)*$psize.','.$psize;
		$tech = pdo_fetchall($sql,array(':uniacid'=>$_W['uniacid']));
		$countSql = "SELECT COUNT(*)FROM " . tablename('mii_ang_tech')." WHERE uniacid ={$_W['uniacid']}";
		$total = pdo_fetchcolumn($countSql);
		$pager = pagination($total, $pindex, $psize,$url='',$context = array('before' =>1, 'after' => 1, 'ajaxcallback' => '', 'callbackfuncname' => ''));		 
		include $this->template('web/tech/techlist');

	}else{
		message('没有操作权限');
	}

?>